<include file="Public:header" />
<!-- main content start-->
<div class="main-content" >
<style>
    .red{
        color: red;
        font-size: 16px;
        margin-left: 5px;
    }
</style>
    <!-- header section start-->
    <div class="header-section">
        <!--toggle button start-->
        <a class="toggle-btn"><i class="fa fa-bars"></i></a>
        <!--toggle button end-->
        <!--search start-->
        <form class="searchform" method="post">
            <input type="text" class="form-control" name="search" placeholder="搜索" value="{$search}"/>
            <span class="input-group-btn" style="float:left;line-height: 50px;">
            <button type="submit" class="btn btn-default"><i class="fa fa-search"></i></button>
        </span>
        </form>
        <!--search end-->
        <!--notification menu start -->
        <div class="menu-right">
            <ul class="notification-menu" style="margin-top: 15px;">
                <li>
                <span class="span" style="margin-top: 100px;">
                    账户余额(元)<span style="color: red; font-size: 16px; font-weight: 800 ">{$info.money}</span>
                </span>
                </li>

            </ul>
        </div>
        <!--notification menu end -->
    </div>
    <!-- header section end-->
    <!-- page heading start-->
    <div class="page-heading">
        <h3>
            商家统计
        </h3>
        <ul class="breadcrumb">
            <li>
                <a href="#">首页</a>
            </li>
            <li>商家统计   </li>
            <li class="active"> 活动详情 </li>
        </ul>
    </div>
    <!-- page heading end-->

    <!--body wrapper start-->
    <div class="wrapper">
        <section class="panel">
            <div class="panel-body">
                <section id="unseen">
                    <table class="table table-bordered table-striped table-condensed">
                        <thead>
                        <tr>
                            <th>ID</th>
                            <th>用户昵称</th>
                            <th>性别</th>
                        <!--    <th>省份</th>-->
                            <th>城市</th>
                            <th>领取金额</th>
                            <th>头像</th>
                            <th>分享次数</th>
                            <th>扫码次数</th>
                            <th>获得时间</th>
                            <th>操作</th>
                        </tr>
                        </thead>
                        <tbody>
                        <volist name="list" id="vo">
                            <tr>
                                <td>{$vo.id}</td>
                                <td>{$vo.nickname}</td>
                                <td>{$vo.sex}</td>

                                <td><empty name="vo.city">未填写<else /> {$vo.city}</empty></td>
                                <td>{$vo.money}</td>
                                <td><img src="{$vo.headimgurl}" height="50" width="50"/> </td>
                                <td>{$vo.count}</td>
                                <td>{$vo.scan_count}</td>
                                <td>{$vo.addtime}</td>
                                <td>
                                    <a class="btn btn-xs btn-warning userDelete" onclick="del({$vo.id})"><i class="fa fa-trash-o"></i>删除</a>
                                </td>
                            </tr>
                        </volist>
                        </tbody>
                    </table>
                <span class="span">活动详情: 活动名称<label class="red">{$hd_info.title}</label>,计划金额<label  class="red">{$hd_info.quota_money}</label>元,剩余金额<label  class="red">{$hd_info.sheng_money}</label>元</span>

                    <div class="row">
                        <div class="col-lg-12">
                            <div class="dataTables_paginate paging_bootstrap pagination">
                                {$pages}
                            </div>
                        </div>
                    </div>
                </section>
            </div>
        </section>
    </div>
    <!--body wrapper end-->
    <!-- main content end-->
    <script>
        function del(id){
            if(confirm("确认删除")){
                var url="{:U('Shopadmin/Log/delete')}";
                $.post(url,{id:id},function(res){
                    if(res.code==200){
                        toast(res.msg,true);
                        location.reload()
                    }else{
                        toast(res.msg,false);
                    }
                });
                return false;
            }else{
                return false;
            }

        }
    </script>
    <include file="Public:footer" />